package com.example.my_flea_street.service.impl;

import com.example.my_flea_street.Mapper.EditMapper;
import com.example.my_flea_street.service.EditService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "editService")
public class EditServiceImpl implements EditService {

    @Resource
    EditMapper editMapper;
    @Override
    public void addInfo(String release_time, String text, String pic, int category, int user_id, String key) {
        editMapper.addInfo(release_time,text,pic,category,user_id,key);
    }

    @Override
    public void editInfo(int id, String release_time, String text, String pic, String key) {
        System.out.println(id+" "+release_time+" "+text+" "+pic+" "+key);
        editMapper.editInfo(id,release_time,text,pic,key);
    }

    @Override
    public String getPic(int id) {
        return editMapper.getPic(id);
    }
}
